package cn.ryh.environmentvariable.controller;

import cn.ryh.environmentvariable.entity.MyConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName ReadMyConfigController
 * @Description 用于读取自定义配置文件信息controller
 * @Author RaoYH
 */
@RestController
@RequestMapping(value = "/readMyConfigController")
public class ReadMyConfigController {
    @Resource
    private MyConfig myConfig;

    @RequestMapping(value = "/getMyConfig")
    public MyConfig getMyConfig(){
     return myConfig;
    }
}
